package cn.zhangbo.dao.po;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;

@Entity
@Component
@Setter
@Getter
public class Teacher implements Serializable {
    /**
     * (必填，请用一句话描述此变量表示什么).
     *
     * @since 1.0.0
     */
    private static final long serialVersionUID = 5464175L;
    @Id
    @GeneratedValue
    private Long id;
    private String name;
    private String idCardNumber;
    private Integer sex;
    private Integer age;
    private Date createDatetime;
    private Date updateDatetime;
    private String address;
    private String phone;
    private String email;
    private String extraContact;
    @ManyToMany
    private List<Student> students;
}
